//
//  LTMessageResponseModel.m
//  LTIM
//
//  Created by 俊松何 on 2017/4/5.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import "LTMessageResponseModel.h"
#import "LTMessage.h"
#import <MJExtension/MJExtension.h>
#import "LTLib.h"

@implementation LTMessageResponseModel

-(instancetype)initWithCode:(int)code
                      cmdId:(int)cmdId
                   chatType:(LTChatType)chatType
                  messageId:(NSString *)messageId
         originTargetUserId:(NSString *)originTargetUserId;
{
    if(self = [super init])
    {
        _code = code;
        _cmdId = cmdId;
        NSDictionary *dict = @{@"chatType" :@(chatType),
                              @"messageId":messageId,
                              @"originTargetUserId":originTargetUserId,
                              @"sinceUserId":[LTClient sharedClient].currentUserId};
        _data = [dict mj_JSONString];
        
    }
    return self;

}
@end
